package com.tpyule.tpclass.service;

import com.tpyule.tpclass.entity.bo.SectionStudyBo;
import com.tpyule.tpclass.entity.pojo.Section;

import java.util.List;

/**
 * @author zzz
 * @version 1.0
 * @date 2020/3/29 20:57
 */
public interface SectionService {
    public List<Section> getListSectionByChapterId(String chapterId);
    public String updateSection(Section section);
    public int updateBigSection(Section section);
    public Section addSection(Section section);

    /**
     * 根据课程ID获取课程数量
     * @param courseId
     * @return
     */
    public int getSectionSize(String courseId);

    /**
     * 根据章节ID和用户ID获取该用户的学习情况
     * @param chapterId
     * @param userId
     * @return
     */
    public List<SectionStudyBo> getSectionStudy(String chapterId,String userId);

    /**
     * 根据节ID获取节对象
     * @param sectionId
     * @return
     */
    public Section getSection(String sectionId);

    /**
     * 获取第一个节
     * @param courseId
     * @return
     */
    public Section getIndexSection(String courseId);
}
